﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MvcApplication2.Models.DTO;

namespace MvcApplication2.Models.Services
{
    public static class LoaiSanPhamService
    {
        public static List<LoaiSanPham> LayDanhSachLoaiSanPham()
        {
            MyDataProvider.Open();
            var dt = MyDataProvider.excuteQuery("spu_loaisanpham_getAll");
            MyDataProvider.Close();
            return Utility.ToList<LoaiSanPham>(dt);
        }
    }
}